package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/9/17 16:28
 * @desrcption: 复制菜单
 */
@Getter
@Setter
@ToString
public class MenuCopyDTO extends BaseDTO {

    private static final long serialVersionUID = 5802022550847832152L;

    /**
     * 类型
     */
    @NotNull(message = "{dto.msg.menuCopy.type.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Integer type;
    /**
     * 需要复制到哪个应用
     */
    @NotNull(message = "{dto.msg.menuCopy.targetAppId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long targetAppId;

    /**
     * 菜单id
     */
    @NotNull(message = "{dto.msg.menuCopy.menuId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long menuId;

    private Integer enable;

    private Integer del;

    public MenuCopyDTO(){
        enable = 1;
        del = DelEnum.NORMAL.getDel();
    }
}
